package netty.rpc.register;

import java.util.List;
import java.util.Map;

/**
 * 服务注册 接口 提供SPI能力。可以基于ZK 实现ZKRegisterService 也可以基于ETCH 实现ETCDRegisterService
 * @author Jim
 * @version 1.0.0
 * @descripition:
 * @date 2022/5/21 16:34
 */
public interface RegisterService extends Register{


    String getServiceDefinition(String env,String serviceId);


    List<String> getServiceInstance(String env,String serviceId);

    void addWatcherListener(String path,Notify notify) throws Exception;

    void init(RegisterProperties registerProperties) throws Exception;
}
